import Types from '../actionTypes';
import {getAddress, getUserList} from '../../api';


const GET_USER_LIST = (page, page_size) => {
  return new Promise((resolve, reject) => {
    getUserList(page, page_size).then(res => {
      console.log(res);
      resolve({
        type: Types.GET_USER_LIST,
        res
      });
    }).catch(err => {
      console.log(err);
    });
  });
};

export default {
  GET_USER_LIST
};
